package com.jinhongone.pattern.structure.decorator;

public class Test {

    public static void main(String[] args) {

        FirstFood friedRice = new FriedRice();
        System.out.println(friedRice.getDesc() + "   " +  friedRice.cost());

        System.out.println("=================");

        friedRice = new Egg(friedRice);
        System.out.println(friedRice.getDesc() + "   " +  friedRice.cost());

        System.out.println("=================");

        friedRice = new Egg(friedRice);
        System.out.println(friedRice.getDesc() + "   " +  friedRice.cost());

    }
}
